package com.icehand.qiniu.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author icehand
 */
@ConfigurationProperties(prefix = "qiniu.oss")
@Component
@Data
public class QiniuConfig {
    private String accessKey;
    private String secretKey;
    private String serverUrl;
    private Bucket bucket;

    @Data
    public static class Bucket {
        private String name;
        private String zone;
    }
}
